﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace DL
{
    class Ellipse
    {
        Point center;
        int xRadius, yRadius;

        public Ellipse(Point c, int xR, int yR)
        {
            center = c;
            xRadius = xR;
            yRadius = yR;
        }

        public void Draw(Pen pen, Graphics g)
        {
            g.DrawEllipse(pen, center.X - xRadius, center.Y - yRadius, 2 * xRadius, 2 * yRadius);
        }
    }
}
